package com.yzy.service;


import com.yzy.domain.dto.system.RolePermissionDTO;
import com.yzy.domain.entity.system.PermissionEnum;
import com.yzy.domain.entity.system.RolePermission;

import java.util.List;

public interface RolePermissionService {

    void checkPermission(PermissionEnum[] permissions, String accountId, String message);

    void checkPermission(PermissionEnum[] permissions, String accountId);

    void checkPermission(PermissionEnum permission, String accountId, String message);

    void checkPermission(PermissionEnum permission, String accountId);

    boolean checkAdmin(String accountId);

    RolePermission findByRoleIdAndPermission(PermissionEnum permission, String roleId);

    List<RolePermission> getPermissionByRoleId(String roleId);

    void saveOrUpdatePermission(RolePermissionDTO rolePermissionDTO, String accountId);
}
